<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Simple Module <i>TunOutDevice</i></h2>
<b>Package:</b> oversim.underlay.singlehostunderlay<br/><b>File: <a href="src-underlay-singlehostunderlay-TunOutDevice.ned.html">src/underlay/singlehostunderlay/TunOutDevice.ned</a></b><br/><p><a href="../doxy/classTunOutDevice.html" target="mainframe"><b>C++ definition</b></a></p>

<p><a href="oversim.underlay.singlehostunderlay.TunOutDevice.html">TunOutDevice</a> is a pseudo interface that allows communication with the real world
through the TunOutScheduler
WARNING: This does ONLY work with the combination IPv4|UDP|OverlayMessage</p>
<img src="oversim.underlay.singlehostunderlay.TunOutDevice-type.png" ismap="yes" usemap="#type-diagram"/><map name="type-diagram">
<area shape="rect" href="oversim.underlay.singlehostunderlay.TunOutDevice.html" title="TunOutDevice" alt="TunOutDevice" coords="0,0,127,40">
</map>
<h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram.
Click <a href="full-ned-usage-diagram.html">here</a> to see the full picture.</p>
<img src="oversim.underlay.singlehostunderlay.TunOutDevice-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="oversim.underlay.singlehostunderlay.TunOutDevice.html" title="Simple Module TunOutDevice" alt="" coords="69,83,176,111">
<area shape="rect" id="node2" href="oversim.underlay.inetunderlay.TunOutRouter.html" title="Compound Module TunOutRouter" alt="" coords="5,6,109,34">
<area shape="rect" id="node4" href="oversim.underlay.inetunderlay.ipv6.TunOutRouter6.html" title="Compound Module TunOutRouter6" alt="" coords="133,6,243,34">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram.
Click <a href="full-ned-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="oversim.underlay.singlehostunderlay.TunOutDevice-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="oversim.underlay.singlehostunderlay.TunOutDevice.html" title="Simple Module TunOutDevice" alt="" coords="5,6,112,34">
</map>
<h3 class="subtitle">Used in compound modules:</h3>
<p>If a module type shows up more than once, that means it has been defined in more than one NED file.</p>
<table>
<tr>
   <td>
      <a href="oversim.underlay.inetunderlay.TunOutRouter.html">TunOutRouter</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>TunOut router.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.underlay.inetunderlay.ipv6.TunOutRouter6.html">TunOutRouter6</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>TunOut router.</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">mtu</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120"></td>
   <td>
<p>maximum transmission unit of the underlaying network</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Properties:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Value</th>
      <th>Description</th>
   </tr>
<tr>
   <td width="150">display</td>
   <td width="100"><i>i=block/ifcard</i></td>
   <td>
</td>
</tr>
</table>
<h3 class="subtitle">Gates:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Direction</th>
      <th>Size</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">netwIn</xsl:if></td>
   <td width="100"><i>input</i></td>
   <td width="50"></td>   <td>
<p>incoming gate from network</p>
</td>
</tr>
<tr class="local">
   <td width="150">netwOut</xsl:if></td>
   <td width="100"><i>output</i></td>
   <td width="50"></td>   <td>
<p>outgoing gate to network</p>
</td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">// 
// TunOutDevice is a pseudo interface that allows communication with the real world
// through the TunOutScheduler
// WARNING: This does ONLY work with the combination IPv4|UDP|OverlayMessage
//
</span><span style="color: #800000; font-weight: bold; ">simple</span><span style="color: #000000; "> </span><span style="color: #000000; ">TunOutDevice</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">mtu</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// maximum transmission unit of the underlaying network
</span><span style="color: #000000; ">        </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;i=block/ifcard&quot;</span><span style="color: #000000; ">);

    </span><span style="color: #800000; font-weight: bold; ">gates</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">netwIn</span><span style="color: #000000; ">;    </span><span style="color: #808080; font-style: italic; ">// incoming gate from network
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">netwOut</span><span style="color: #000000; ">;    </span><span style="color: #808080; font-style: italic; ">// outgoing gate to network
</span><span style="color: #000000; ">}


</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
